*{
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body, html {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

p{
    font-size: 24px;
}
.wrap{
    width: 530px;
}
h1{
    margin-bottom: 20px;
    text-align: center;
    font-size: 35px;
    color: #fff;
}
.form-wrap{
    overflow: hidden;
    height: 447px;
    position: relative;
    top: 0;
    transition: 1s ease-in-out .3s;
}
.form-wrap::before{
    content: "";
    position: absolute;
    bottom: 128px;
    left: 0;
    background : url(./img/before.png);
    width: 100%;
    height: 317px;
}
.form-wrap::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    background: url(./img/after.png);
    width: 100%;
    height: 259px;
}
.form-wrap.hide::after,
.form-wrap.hide::before{
    display: none;
}
.form-wrap:hover{
    height: 777px;
    top: -200px;
}
form{
    position: relative;
    top: 200px;
    overflow: hidden;
    height: 200px;
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    bottom: 1px solid white;
    border-right : 3px;
    transition: all 1s ease-in-out .3s;
    background-color: #fff;
}

.form-wrap:hover form{
    height: 530px;
}
label {
    margin: 11px;
    font-size: 15px;
    color : gray;
    text-transform: uppercase;
}
input[type=text],textarea{
    font: 14px normal uppercase, arial, serif;
    color: dimgray;
    background: none;
    width: 380px;
    height: 37px;
    padding: 0 10px;
    margin: 0 0 10px 0;
    border : 1px solid #aaa;
    border-radius: 5px;
}
textarea{
    height: 80px;
    padding-top: 14px;
    resize: none;
}
textarea:focus,
input[type=text]:focus{
    background-color: #fff;
}

.form-wrap input[type=submit]{
    position: relative;
    color: gray;
    font-size: 24px;
    width: 100%;
    text-align: center;
    opacity: 0;
    background: none;
    cursor: pointer;
    border-radius: 3px;
    transition: opacity .7s ease-in-out;
}
.form-wrap:hover input[type=submit]{
    z-index: inherit 1;
    opacity: 1;
    transition: opacity .5s ease-in-out 1.3s;
}


















